package com.jiangzhe.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiangzhe.common.utils.PageUtils;
import com.jiangzhe.product.entity.CategoryEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author jzchvrches
 * @email jzchvrches@gmail.com
 * @date 2020-07-07 22:42:58
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCategoryPath(Long catelogId);


    void updateCascade(CategoryEntity category);
}

